package nl.weeaboo.sh.danmaku.commands;

import nl.weeaboo.sh.danmaku.ShotModel;
import nl.weeaboo.sh.danmaku.Spell;
import nl.weeaboo.sh.danmaku.SpellBook;
import nl.weeaboo.sh.danmaku.Universe;

public class THp extends Spell {

	private int hp;
	
	public THp(int hp) {
		this.hp = hp;
	}
	protected THp(THp t) {
		super(t);		
		hp = t.hp;
	}
	
	public THp clone() {
		return new THp(this);
	}
	
	@Override
	public void step(Universe u, SpellBook sb, ShotModel s) {
		s.setHp(hp);
		finish();
	}
	
}
